These are MANUAL-PATH templates. Prefer the fix scripts (or Claude + MIGRATE.md),
which do all of this for you including the cleanup and verification.

Destination:
  macOS / Linux : ~/.claude/settings.json          (use settings.mac-linux.json)
  Windows       : %USERPROFILE%\.claude\settings.json   (use settings.windows.json)

Steps:
  1. FIRST create the key file next to it: ~/.claude/apim-key.txt
     containing ONLY your 32-char APIM key - no quotes, no trailing newline,
     UTF-8 without BOM. (macOS/Linux: chmod 600 apim-key.txt)
  2. MERGE the template's keys into your existing settings.json. Do NOT replace
     the whole file - keep your "hooks", "permissions", and any existing "model".
  3. Replace <you> with your real username. Windows: keep the DOUBLED backslashes
     and use your real absolute path (%VAR%/~ inside apiKeyHelper is unreliable).
  4. REMOVE these from "env" if present (they override the helper or cause 400s):
       ANTHROPIC_API_KEY            <-- the v1 static key: MUST go
       ANTHROPIC_AUTH_TOKEN
       CLAUDE_CODE_USE_FOUNDRY, ANTHROPIC_FOUNDRY_RESOURCE, ANTHROPIC_FOUNDRY_API_KEY
       ANTHROPIC_MODEL, ANTHROPIC_SMALL_FAST_MODEL
       CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING, MAX_THINKING_TOKENS
  5. Save as UTF-8 WITHOUT BOM. Fully quit and relaunch the CLI / VS Code.
  6. Also check ~/.claude.json (a DIFFERENT file): your key's last 20 characters
     must NOT be under customApiKeyResponses.rejected (move to approved), and
     "hasCompletedOnboarding": true should be present. See SETUP-GUIDE.md.
